package com.guoning.office_system.service;

import com.guoning.office_system.model.WorkOrder;
import com.guoning.office_system.vo.Criteria;
import com.guoning.office_system.vo.PageBean;

import java.util.List;
import java.util.Map;

public interface WorkOrderService {
    PageBean<WorkOrder> selectByQueryCondition(Criteria criteria, PageBean pageBean);

    Long selectCountByQueryCondition(Criteria criteria);

    // 标位已阅
    int updateHaveRead(List<WorkOrder> workOrderList);

    // 标位已办
    int updateHaveToDo(List<WorkOrder> workOrderList);

    List<Map> getEnableStatusItemAndCount(Long userId);

    int updateForDeleteById(Long id);

    int deleteByPrimaryKey(Long id);

    Long insert(WorkOrder record);

    int insertSelective(WorkOrder record);

    WorkOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(WorkOrder record);

    int updateByPrimaryKeyWithBLOBs(WorkOrder record);

    int updateByPrimaryKey(WorkOrder record);
}